<?php
include_once dirname(__FILE__).'/../rdb/factory/RDBDAOFactory.php';
/**
 * Name: DAOFactory.php
 * Created by: Chung Hoang Long
 * Created Date: 11-10-2013
 * Description: Lop truu tuong dung tao ra cac ket noi (RDB, XML, vv...)
 */

abstract class DAOFactory {
	
	public static $RDB = 1;
	
	public static function getDAOFactory($whichFactory) {
		switch ($whichFactory) {
			case self::$RDB:
				return new RDBDAOFactory();
			default: 
				return null;
		}
	}
}
?>